﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;

namespace IHISCETeim.Web.MachineSys.MacModel
{
    public partial class OInspectionView : PageBase
    {
        protected override string DWZRef
        {
            get { return "OInspectionList"; }
        }


        /// <summary>
        /// 需查看的机号
        /// </summary>
        protected string SerialNumber
        {
            get
            {
                return GetRequestValue<string>("SerialNumber");
            }
        }

        private OInspectionInfo _obj;
        protected OInspectionInfo obj
        {
            get
            {
                if (_obj == null)
                    _obj = OInspectionController.GetList(ID);
                return _obj;
                //OMenuController.ge
            }
        }

        protected int ID {
            get
            {
                return GetRequestValue<int>("ID", 0);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.rpDJNGItem.DataSource = OInspectionController.GetNGItemList(ID, "完检单");
            this.rpDJNGItem.DataBind();
            this.AddLog(Permission.查看, obj);
        }
    }
}